<?php
namespace app\manger\validate;

use think\Validate;

class Banner extends Validate
{
    protected $rule = [
        'bannerName' => 'require|max:90',
        'bannerImage' => 'require|max:768',
        'bannerSort' => 'require|number',
    ];

    protected $message = [
        'bannerName.require' => '切换图名称不能为空!',
        'bannerName.max' => '切换图名称不能大于30个字符！',
        'bannerImage.require' => '切换图不能为空!',
        'bannerImage.max' => '切换图不能大于256个字符！',
        'bannerSort.require' => '排序值不能为空!',
        'bannerSort.number' => '排序值不能为非数字！',
    ];
}